<?php

class desktop_service_vcode {

    function __construct($app) {
        $this->app = $app;
    }

    function status() {
        if ($_SESSION['error_count'][$this->app->app_id] >= 3)
            return true;
        return app::get('desktop')->getConf('adminVcode') == 'true' ? true : false;
    }
}
?>